package com.techstar.api.pojo.bus;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.IdClass;
import javax.persistence.Table;

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.techstar.api.pojo.complex_id.TodayHourTrafficTrendId;
import com.techstar.common.jackson.TodayHourTrafficTrendDeserializer;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

/**
 * 
 * @author EinIce
 * @description 当日小时客流量趋势
 * @date 2021年9月27日
 */

@Getter
@Setter
@Entity
@ToString
@Table(name = "today_hour_traffic_trend")
@IdClass(TodayHourTrafficTrendId.class)
@org.hibernate.annotations.Table(appliesTo = "today_hour_traffic_trend",comment="pbtp-2-当日小时客流量趋势")
public class TodayHourTrafficTrend {
	@Column(columnDefinition="varchar(100) COMMENT '小时'")
    private String execHour;
	@Id
	@Column(columnDefinition="varchar(100) COMMENT '线路或站点标识'")
	private String id;
	@Column(columnDefinition="varchar(100) COMMENT '输出参数类型'")
	private String type;
	@Column(columnDefinition="varchar(100) COMMENT '线路或站点名称'")
	private String name;
	@Column(columnDefinition="varchar(100) COMMENT '小时客流量'")
	private String flow;
	@Column(columnDefinition="varchar(100) COMMENT '小时客流量同比'")
	private String flowCsy;
	@Id
//	@Column(columnDefinition="date COMMENT '业务更新时间'")
	@Column(columnDefinition="varchar(100) COMMENT '业务更新时间'")
	@JsonDeserialize(using = TodayHourTrafficTrendDeserializer.class)
	private String createTime;
}

